package com.peenongsaban.freelance.service;

import java.util.Vector;

import com.peenongsaban.freelance.bean.AptitudeTypeBean;
import com.peenongsaban.freelance.dao.ServiceDetailDAO;
import com.peenongsaban.freelance.dao.impl.ServiceDetailDAOImpl;
import com.peenongsaban.freelance.model.ServiceDetailModel;

public class ServiceDetailService {
	
	public ServiceDetailModel getServiceDetail(ServiceDetailModel model){
		ServiceDetailModel newModel = new ServiceDetailModel();
		ServiceDetailDAO dao = new ServiceDetailDAOImpl();
		newModel.setServiceDetail(dao.getServiceDetail(model));
		newModel.setListServiceLastPost(dao.getListServiceLastPost());
		newModel.setListAptitudeType(dao.getListAptitudeType());
		return newModel;
	}
	
	public Vector<AptitudeTypeBean> getListAptitudeType(){
		Vector<AptitudeTypeBean> vec = new Vector<AptitudeTypeBean>();
		ServiceDetailDAO dao = new ServiceDetailDAOImpl();
		vec = dao.getListAptitudeType();
		return vec;
		
	}
}
